// -*- C++ -*-
//===-- algorithm ---------------------------------------------------------===//
//
// Copyright (C) Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// This file incorporates work covered by the following copyright and permission
// notice:
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
//
//===----------------------------------------------------------------------===//

#ifndef _ONEDPL_EXPERIMENTAL_ALGORITHM
#define _ONEDPL_EXPERIMENTAL_ALGORITHM

#define __cpp_lib_experimental_parallel_for_loop 201711

// Workarounds for libstdc++9, libstdc++10 when new TBB version is found in the environment
#include "oneapi/dpl/internal/common_config.h"

// ATTENTION!!! Include the header from the C++ standard library before the oneDPL config header to see whether the _PSTL_VERSION macro is defined
#include <algorithm>

#include "internal/reduction.h"
#include "internal/induction.h"
#include "internal/for_loop.h"

namespace dpl = oneapi::dpl;

namespace std
{
namespace experimental
{
using oneapi::dpl::experimental::for_loop;
using oneapi::dpl::experimental::for_loop_n;
using oneapi::dpl::experimental::for_loop_n_strided;
using oneapi::dpl::experimental::for_loop_strided;
using oneapi::dpl::experimental::induction;
using oneapi::dpl::experimental::reduction;
using oneapi::dpl::experimental::reduction_bit_and;
using oneapi::dpl::experimental::reduction_bit_or;
using oneapi::dpl::experimental::reduction_bit_xor;
using oneapi::dpl::experimental::reduction_max;
using oneapi::dpl::experimental::reduction_min;
using oneapi::dpl::experimental::reduction_multiplies;
using oneapi::dpl::experimental::reduction_plus;
} // namespace experimental
} // namespace std

#endif // _ONEDPL_EXPERIMENTAL_ALGORITHM
